<?php

namespace app\admin\model\order;

use think\Model;


class OrderTube extends Model
{

    

    

    // 表名
    protected $name = 'order_tube';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    
    public function biaobenRongqi()
    {
        return $this->hasOne('\app\api\model\goods\BiaobenRongqi', 'id', 'biaoben_rongqi_id')->field('id,title as biaoben_rongqi_name,color')->bind(['biaoben_rongqi_name','color']);
    }






}
